<?php

function map($field, $value, $fieldinfo) {
    extract($fieldinfo);
    $setting = unserialize($setting);
    $size = $setting['size'];
    $errortips = $this->fields[$field]['errortips'];
    $modelid = $this->fields[$field]['modelid'];
    $tips = $value ? "修改标注位置": "点击标注位置";
    return '<input type="button" name="' . $field . '_mark" id="' . $field . '_mark" value="' . $tips . '" class="button" onclick="omnipotent(\'selectid\',\'' . CONFIG_SITEURL . 'api.php?op=map&field=' . $field . '&modelid=' . $modelid . '\',\'地图标注\',1,700,420)"><input type="hidden" name="info[' . $field . ']" value="' . $value . '" id="' . $field . '" >';
}

?>